package com.sbtr.business.calibration.service;

import com.sbtr.common.PageDto;
import com.sbtr.open.calibration.dto.CalibrationDetailsDto;
import com.sbtr.open.calibration.dto.CalibrationDto;
import com.sbtr.open.calibration.dto.CalibrationSearchDto;
import com.sbtr.open.calibration.dto.CalibrationTxtDto;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public interface ICalibrationService {

    public PageDto<CalibrationDto> search(CalibrationSearchDto dto);

    public Boolean batchDeleteById(List<Long> idList);

    public CalibrationDto save(CalibrationDto dto);

    public CalibrationDto update(CalibrationDto dto);

    boolean updateCalibrationSetTxtCount(Long calibrationId);

    public List<CalibrationDetailsDto> divisionImgDetectTask(Long calibrationId, String finisher);

    public CalibrationDto findById(Long id);

    public List<CalibrationTxtDto> saveTxtDetails( Long calibrationDetailsId,
                                                  List<CalibrationTxtDto> dtos);

    boolean updateCalibrationAndCalibrationDetails(CalibrationDto calibrationDto, String newfinisher);


}
